<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/static/include/main_include.jsp"%>
</head>
<body class="easyui-layout">
	<div data-options="region:'center',border:false">
		<table id="businessChooseTable"></table>
	</div>
	<script type="text/javascript">
	var businessChooseTable;
		$(function() {
			//Table表格数据源
			businessChooseTable = $('#businessChooseTable').datagrid(BasicData.createDatagrid({
				url : rootpath + '/business/list.do',
				frozenColumns : [ [ {
					field : 'ck',
					checkbox : true
				}, {
					title : 'BUSINESS_ID',
					field : 'BUSINESS_ID',
					hidden : true
				} ] ],
				columns : [ [ {
					field : 'NAME',
					title : '名称',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'PHONE',
					title : '电话',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'PROMOTION_INFO',
					title : '介绍信息',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'OPENING_HOURS',
					title : '营业时间',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'ADDRESS',
					title : '地址',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'REMARKS',
					title : '备注',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'DISABLED',
					title : '是否禁用',
					width : '10%',
					sortable : true,
					align : 'center'
				}, {
					field : 'CREATEDATE',
					title : '创建时间',
					width : '10%',
					sortable : true,
					align : 'center'
				} ] ],
				onDblClickRow : function(rowIndex, rowData) {

				}
			}))
		});
	</script>
</body>
</html>